package cn.kgc.dao;


import cn.kgc.pojo.Organization;
import cn.kgc.pojo.Employment;
import cn.kgc.pojo.Position_dyb;
import cn.kgc.pojo.*;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Dao_dyb {

     Page<Employment> selEmployment(@Param("positionName") String positionName, @Param("positionSort") String positionSort, @Param("registranTime") String registranTime, @Param("expirationDate") String expirationDate);

     List<Organization> getOrganization();

     List<Position_dyb> getPositionByOrgan(String allName);

     List<Position_dyb> getPositionById(@Param("departmentid")Integer departmentid);

     Position_dyb getPosition(@Param("positionId")Integer positionId);

     Integer savePositionInfo(Employment_dyb employment);

     Integer upPositionInfo(Employment_dyb employment);

     Employment_dyb getEmploymentById(@Param("employmentId")Integer employmentId);

     Integer delEmployment(@Param("employmentId")Integer employmentId);

}
